home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 4e 65 77 73 67 72 6f 75 | 70 73 3a 20 63 6f 6d 70 |Newsgrou|ps: comp|
|00000010| 2e 6c 61 6e 67 2e 63 2b | 2b 0a 50 61 74 68 3a 20 |.lang.c+|+.Path: |
|00000020| 6e 65 77 73 2e 6e 65 72 | 2e 62 62 6e 70 6c 61 6e |news.ner|.bbnplan|
|00000030| 65 74 2e 6e 65 74 21 61 | 72 63 6f 21 75 73 65 6e |et.net!a|rco!usen|
|00000040| 65 74 0a 46 72 6f 6d 3a | 20 42 72 69 61 6e 20 4c |et.From:| Brian L|
|00000050| 65 61 63 68 20 3c 6c 61 | 73 62 66 6c 3e 0a 53 75 |each <la|sbfl>.Su|
|00000060| 62 6a 65 63 74 3a 20 52 | 65 3a 20 49 2f 4f 20 53 |bject: R|e: I/O S|
|00000070| 74 72 65 61 6d 73 2e 2e | 2e 51 75 65 73 74 69 6f |treams..|.Questio|
|00000080| 6e 3f 0a 58 2d 4e 6e 74 | 70 2d 50 6f 73 74 69 6e |n?.X-Nnt|p-Postin|
|00000090| 67 2d 48 6f 73 74 3a 20 | 31 33 36 2e 32 32 36 2e |g-Host: |136.226.|
|000000a0| 31 31 36 2e 31 0a 43 6f | 6e 74 65 6e 74 2d 54 79 |116.1.Co|ntent-Ty|
|000000b0| 70 65 3a 20 74 65 78 74 | 2f 70 6c 61 69 6e 3b 20 |pe: text|/plain; |
|000000c0| 63 68 61 72 73 65 74 3d | 75 73 2d 61 73 63 69 69 |charset=|us-ascii|
|000000d0| 0a 4d 65 73 73 61 67 65 | 2d 49 44 3a 20 3c 44 4d |.Message|-ID: <DM|
|000000e0| 34 32 49 4d 2e 49 41 43 | 40 6e 65 77 73 2e 61 72 |42IM.IAC|@news.ar|
|000000f0| 63 6f 2e 63 6f 6d 3e 0a | 54 6f 3a 20 72 62 73 74 |co.com>.|To: rbst|
|00000100| 65 76 65 6e 40 65 6f 73 | 2e 6e 63 73 75 2e 65 64 |even@eos|.ncsu.ed|
|00000110| 75 0a 53 65 6e 64 65 72 | 3a 20 75 73 65 6e 65 74 |u.Sender|: usenet|
|00000120| 40 6e 65 77 73 2e 61 72 | 63 6f 2e 63 6f 6d 0a 43 |@news.ar|co.com.C|
|00000130| 6f 6e 74 65 6e 74 2d 54 | 72 61 6e 73 66 65 72 2d |ontent-T|ransfer-|
|00000140| 45 6e 63 6f 64 69 6e 67 | 3a 20 37 62 69 74 0a 4f |Encoding|: 7bit.O|
|00000150| 72 67 61 6e 69 7a 61 74 | 69 6f 6e 3a 20 41 52 43 |rganizat|ion: ARC|
|00000160| 4f 20 4f 69 6c 20 25 20 | 47 61 73 20 43 6f 6d 70 |O Oil % |Gas Comp|
|00000170| 61 6e 79 0a 52 65 66 65 | 72 65 6e 63 65 73 3a 20 |any.Refe|rences: |
|00000180| 3c 34 65 6f 70 32 35 24 | 38 75 6d 40 74 61 63 6f |<4eop25$|8um@taco|
|00000190| 2e 63 63 2e 6e 63 73 75 | 2e 65 64 75 3e 0a 4d 69 |.cc.ncsu|.edu>.Mi|
|000001a0| 6d 65 2d 56 65 72 73 69 | 6f 6e 3a 20 31 2e 30 0a |me-Versi|on: 1.0.|
|000001b0| 44 61 74 65 3a 20 54 68 | 75 2c 20 31 20 46 65 62 |Date: Th|u, 1 Feb|
|000001c0| 20 31 39 39 36 20 31 39 | 3a 30 38 3a 34 36 20 47 | 1996 19|:08:46 G|
|000001d0| 4d 54 0a 58 2d 4d 61 69 | 6c 65 72 3a 20 4d 6f 7a |MT.X-Mai|ler: Moz|
|000001e0| 69 6c 6c 61 20 31 2e 31 | 32 20 28 58 31 31 3b 20 |illa 1.1|2 (X11; |
|000001f0| 49 3b 20 48 50 2d 55 58 | 20 41 2e 30 39 2e 30 35 |I; HP-UX| A.09.05|
|00000200| 20 39 30 30 30 2f 37 35 | 35 29 0a 58 2d 55 72 6c | 9000/75|5).X-Url|
|00000210| 3a 20 6e 65 77 73 3a 34 | 65 6f 70 32 35 24 38 75 |: news:4|eop25$8u|
|00000220| 6d 40 74 61 63 6f 2e 63 | 63 2e 6e 63 73 75 2e 65 |m@taco.c|c.ncsu.e|
|00000230| 64 75 0a 0a 72 62 73 74 | 65 76 65 6e 40 65 6f 73 |du..rbst|even@eos|
|00000240| 2e 6e 63 73 75 2e 65 64 | 75 20 28 52 6f 62 65 72 |.ncsu.ed|u (Rober|
|00000250| 74 20 42 61 72 63 6c 61 | 79 20 53 74 65 76 65 6e |t Barcla|y Steven|
|00000260| 73 6f 6e 29 20 77 72 6f | 74 65 3a 0a 3e 0a 3e 48 |son) wro|te:.>.>H|
|00000270| 65 79 20 74 68 65 72 65 | 2e 2e 2e 0a 3e 0a 3e 20 |ey there|....>.> |
|00000280| 20 20 20 20 49 20 61 6d | 20 72 65 6c 61 74 69 76 | I am| relativ|
|00000290| 65 6c 79 20 65 78 70 65 | 72 69 65 6e 63 65 64 20 |ely expe|rienced |
|000002a0| 77 69 74 68 20 43 20 70 | 72 6f 67 72 61 6d 6d 69 |with C p|rogrammi|
|000002b0| 6e 67 2c 20 62 75 74 20 | 72 65 63 65 6e 74 6c 79 |ng, but |recently|
|000002c0| 20 61 64 6f 70 74 65 64 | 20 43 2b 2b 0a 3e 66 6f | adopted| C++.>fo|
|000002d0| 72 20 61 20 63 6f 75 70 | 6c 65 20 6f 66 20 73 68 |r a coup|le of sh|
|000002e0| 6f 72 74 20 70 72 6f 6a | 65 63 74 73 2e 20 20 42 |ort proj|ects. B|
|000002f0| 61 73 69 63 61 6c 6c 79 | 20 49 20 77 6f 75 6c 64 |asically| I would|
|00000300| 20 6c 69 6b 65 20 74 6f | 20 75 73 65 20 74 68 65 | like to| use the|
|00000310| 20 69 6f 73 74 72 65 61 | 6d 0a 3e 63 6c 61 73 73 | iostrea|m.>class|
|00000320| 20 74 6f 20 68 61 6e 64 | 6c 65 20 73 74 64 69 6e | to hand|le stdin|
|00000330| 20 74 68 72 6f 75 67 68 | 20 61 20 6c 6f 6f 70 20 | through| a loop |
|00000340| 74 6f 20 62 75 69 6c 64 | 20 61 20 6c 69 73 74 2c |to build| a list,|
|00000350| 20 73 6f 6d 65 74 68 69 | 6e 67 20 6c 69 6b 65 3a | somethi|ng like:|
|00000360| 0a 3e 0a 3e 77 68 69 6c | 65 20 28 63 69 6e 20 3e |.>.>whil|e (cin >|
|00000370| 3e 20 69 6e 70 75 74 4c | 69 73 74 5b 69 6e 70 75 |> inputL|ist[inpu|
|00000380| 74 5f 64 61 74 61 5d 29 | 20 7b 0a 3e 0a 3e 2f 2a |t_data])| {.>.>/*|
|00000390| 62 6c 61 68 2c 20 62 6c | 61 68 2c 20 62 6c 61 68 |blah, bl|ah, blah|
|000003a0| 2e 2e 2e 2a 2f 0a 3e 0a | 3e 7d 0a 3e 0a 3e 50 72 |...*/.>.|>}.>.>Pr|
|000003b0| 6f 62 6c 65 6d 20 69 73 | 2e 2e 2e 49 20 63 61 6e |oblem is|...I can|
|000003c0| 27 74 20 67 65 74 20 6f | 75 74 20 6f 66 20 74 68 |'t get o|ut of th|
|000003d0| 65 20 6c 6f 6f 70 20 77 | 69 74 68 6f 75 74 20 63 |e loop w|ithout c|
|000003e0| 68 65 63 6b 69 6e 67 20 | 73 6f 6d 65 20 70 72 65 |hecking |some pre|
|000003f0| 2d 63 6f 6e 64 69 74 69 | 6f 6e 0a 3e 61 6e 64 20 |-conditi|on.>and |
|00000400| 62 72 65 61 6b 69 6e 67 | 20 6f 75 74 2e 20 20 49 |breaking| out. I|
|00000410| 20 63 6f 75 6c 64 20 67 | 65 74 20 74 68 65 20 75 | could g|et the u|
|00000420| 73 65 72 20 74 6f 20 70 | 75 74 20 61 20 73 65 6e |ser to p|ut a sen|
|00000430| 74 69 6e 65 6c 20 6c 69 | 6b 65 20 27 51 27 20 6f |tinel li|ke 'Q' o|
|00000440| 72 20 73 6f 6d 65 74 68 | 69 6e 67 0a 3e 61 74 20 |r someth|ing.>at |
|00000450| 74 68 65 20 65 6e 64 20 | 6f 66 20 74 68 65 20 73 |the end |of the s|
|00000460| 74 72 65 61 6d 2c 20 62 | 75 74 20 69 74 20 77 6f |tream, b|ut it wo|
|00000470| 75 6c 64 20 6e 6f 74 20 | 72 65 61 6c 6c 79 20 62 |uld not |really b|
|00000480| 65 20 74 68 65 20 69 64 | 65 61 6c 20 73 6f 6c 75 |e the id|eal solu|
|00000490| 74 69 6f 6e 2e 20 20 0a | 3e 41 6e 79 77 61 79 73 |tion. .|>Anyways|
|000004a0| 20 69 66 20 61 6e 79 20 | 6f 75 74 20 74 68 65 72 | if any |out ther|
|000004b0| 65 20 68 61 73 20 61 20 | 73 75 67 67 65 73 74 69 |e has a |suggesti|
|000004c0| 6f 6e 20 74 6f 20 67 65 | 74 20 74 68 65 20 6c 6f |on to ge|t the lo|
|000004d0| 6f 70 20 74 6f 20 65 76 | 61 6c 75 61 74 65 20 66 |op to ev|aluate f|
|000004e0| 61 6c 73 65 20 61 6e 64 | 0a 3e 66 61 69 6c 20 73 |alse and|.>fail s|
|000004f0| 6f 20 74 68 65 20 72 65 | 73 74 20 6f 66 20 74 68 |o the re|st of th|
|00000500| 65 20 63 6f 64 65 20 74 | 68 61 74 20 66 6f 6c 6c |e code t|hat foll|
|00000510| 6f 77 73 20 63 6f 75 6c | 64 20 62 65 20 75 73 65 |ows coul|d be use|
|00000520| 64 20 49 27 64 20 62 65 | 20 69 6e 20 61 70 70 72 |d I'd be| in appr|
|00000530| 65 63 69 61 74 69 6f 6e | 2e 2e 2e 0a 3e 0a 3e 54 |eciation|....>.>T|
|00000540| 68 61 6e 6b 73 20 69 6e | 20 61 64 76 61 6e 63 65 |hanks in| advance|
|00000550| 2e 2e 2e 0a 3e 2d 2d 20 | 0a 3e 2d 2d 2d 2d 2d 2d |....>-- |.>------|
|00000560| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000570| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000580| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000590| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000005a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 0a 3e 52 6f 62 65 |--------|--.>Robe|
|000005b0| 72 74 20 53 74 65 76 65 | 6e 73 6f 6e 20 20 20 20 |rt Steve|nson |
|000005c0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7c 20 22 | | | "|
|000005d0| 56 69 72 74 75 61 6c 20 | 52 65 61 6c 69 74 79 20 |Virtual |Reality |
|000005e0| 77 6f 6e 27 74 20 6d 65 | 72 65 6c 79 20 72 65 70 |won't me|rely rep|
|000005f0| 6c 61 63 65 20 54 56 2e | 0a 3e 53 79 73 20 41 64 |lace TV.|.>Sys Ad|
|00000600| 6d 2f 44 65 73 69 67 6e | 20 52 65 73 65 61 72 63 |m/Design| Researc|
|00000610| 68 20 20 20 20 20 20 20 | 20 20 20 7c 20 20 49 74 |h | | It|
|00000620| 20 77 69 6c 6c 20 65 61 | 74 20 69 74 20 61 6c 69 | will ea|t it ali|
|00000630| 76 65 2e 22 20 41 2e 43 | 2e 20 43 6c 61 72 6b 65 |ve." A.C|. Clarke|
|00000640| 0a 3e 56 69 72 74 75 61 | 6c 20 45 6e 76 69 72 6f |.>Virtua|l Enviro|
|00000650| 6e 6d 65 6e 74 73 20 4c | 61 62 20 20 20 20 20 20 |nments L|ab |
|00000660| 20 20 20 7c 20 0a 0a 0a | 49 66 20 79 6f 75 20 61 | | ...|If you a|
|00000670| 72 65 20 77 69 6c 6c 69 | 6e 67 20 74 6f 20 68 61 |re willi|ng to ha|
|00000680| 76 65 20 74 68 65 20 75 | 73 65 72 20 65 6e 74 65 |ve the u|ser ente|
|00000690| 72 20 61 6e 20 65 6e 64 | 20 6f 66 20 66 69 6c 65 |r an end| of file|
|000006a0| 20 28 69 6e 20 55 4e 49 | 58 3a 20 5e 64 29 2c 0a | (in UNI|X: ^d),.|
|000006b0| 63 68 61 6e 67 65 20 79 | 6f 75 72 20 6c 6f 6f 70 |change y|our loop|
|000006c0| 20 74 6f 20 3a 0a 0a 77 | 68 69 6c 65 20 28 20 63 | to :..w|hile ( c|
|000006d0| 69 6e 20 29 0a 7b 0a 20 | 20 63 69 6e 20 3e 3e 20 |in ).{. | cin >> |
|000006e0| 69 6e 70 75 74 4c 69 73 | 74 5b 69 6e 70 75 74 5f |inputLis|t[input_|
|000006f0| 64 61 74 61 5d 3b 0a 20 | 20 69 66 20 28 20 63 69 |data];. | if ( ci|
|00000700| 6e 20 29 0a 20 20 7b 0a | 20 20 20 20 20 2f 2a 20 |n ). {.| /* |
|00000710| 2e 2e 2e 20 2a 2f 0a 20 | 20 7d 0a 7d 0a 0a 54 68 |... */. | }.}..Th|
|00000720| 65 72 65 20 69 73 20 6e | 6f 20 67 65 74 74 69 6e |ere is n|o gettin|
|00000730| 67 20 61 72 6f 75 6e 64 | 20 69 74 2c 20 69 66 20 |g around| it, if |
|00000740| 79 6f 75 20 61 72 65 20 | 74 61 6b 69 6e 67 20 69 |you are |taking i|
|00000750| 6e 70 75 74 20 66 72 6f | 6d 20 74 68 65 20 75 73 |nput fro|m the us|
|00000760| 65 72 2c 20 74 68 65 79 | 20 61 72 65 0a 67 6f 69 |er, they| are.goi|
|00000770| 6e 67 20 74 6f 20 68 61 | 76 65 20 74 6f 20 74 65 |ng to ha|ve to te|
|00000780| 6c 6c 20 79 6f 75 20 77 | 68 65 6e 20 74 68 65 72 |ll you w|hen ther|
|00000790| 65 20 69 73 20 6e 6f 20 | 6d 6f 72 65 2e 20 54 68 |e is no |more. Th|
|000007a0| 65 20 6f 6e 6c 79 20 71 | 75 65 73 74 69 6f 6e 20 |e only q|uestion |
|000007b0| 69 73 2c 20 77 68 61 74 | 20 69 73 0a 74 68 65 20 |is, what| is.the |
|000007c0| 6d 6f 73 74 20 63 6f 6e | 76 65 6e 69 65 6e 74 20 |most con|venient |
|000007d0| 77 61 79 20 66 6f 72 20 | 74 68 65 6d 20 74 6f 20 |way for |them to |
|000007e0| 74 65 6c 6c 20 79 6f 75 | 3f 0a 0a 2d 42 72 69 61 |tell you|?..-Bria|
|000007f0| 6e 20 3a 2d 29 0a 0a | |n :-).. | |
+--------+-------------------------+-------------------------+--------+--------+